<template lang="">
    <div style="width:100vw;height:100vh;">
        <div class="detail-box ">
            <div style="padding-bottom:0.4rem;" class="flex-row">
                <label>标题：</label>
                <p>{{messageObj.title}}</p>
            </div>
            <div class="item flex-row">
                <label>发布人：</label>
                <p>{{messageObj.sendUser}}</p>
            </div>
            <div class="item flex-row">
                <label>时间：</label>
                <p>{{messageObj.msgTime}}</p>
            </div>
            <div class="item flex-row">
                <label>内容：</label>
                <p>{{messageObj.content}}</p>
            </div>
        </div>
    </div>
</template>
<script>
import { setText } from "../../untils/ddnavigate";
export default {
  data() {
    return {
      messageObj: {}
    };
  },
  mounted() {
    let id = this.$route.query.id;
    this.$http.get("/detail/" + id).then(res => {
      let data = res.data;
      if (data.success) {
        this.messageObj = data.data;
      }
    });
    
    this.$http.get("/update/" + id).then(res => {
      let data = res.data;
      if (data.success) {
        this.messageObj = data.data;
      }
    });
    setText("消息详情");
  }
};
</script>
<style lang="less" scoped>
@import url("~@/pagecss/public.less");
label{
  width: 108/75rem;
}
.detail-box {
  padding: 30/75rem;
  font-size: 26/75rem;
}
.item{
    padding: 30/75rem 0;
    border-bottom: 0.5px solid #eeeeee;
}
p{
    color: rgba(0,0,0,0.5);
}
</style>